#include<iostream>
using namespace std;

#define N	16
typedef int fixed_matrix[N][N];


//compute i,k of fixed matrix product

int fix_matrix_ele(fixed_matrix A, fixed_matrix B, int i, int k)
{
		int j  = 0;
		int result = 0;
		for( j = 0; j < N;++j)
		{
				result += A[i][j]*B[j][k];
		}
		return result;
}


//optimized matirx product

int fixed_matrix_product_opt(fixed_matrix A, fixed_matrix B, int i, int k)
{
		int * Arow = &A[i][0];
		int*  Brow = &B[0][k];
		int result  =0;
		for(int j =0; j!=N;++j)
		{
				result ++ Arow[j] * *Brow;
				Brow += N;
		}
		return result;
}


unsigned float2bit(float f)
{
		union{
				float f;
				unsigned u;
		}temp;
		temp.f = f;
		return temp.u;
}

int main()
{
		float a = 1.723;
		cout<<float2bit(a);
		cin.get();
		return 0;
}
